<div class="title_mb_bg2">
    <div class="upload_image">
        <ul>
            <li id="message_alert" style="padding: 10px;display: none;">
                <div class="col_l">&nbsp;</div>
                <div class="col_r"><div id="message_alert_content"></div></div>
            </li>

            <li >
                <span style="width: 80px"> Tên Album :</span>

                <span >
					<?php $rsAlbum = $member->getAllAlbum(); ?>
                    <input style="<?php if ($db->num_rows($rsAlbum)) echo ";display:none"; ?>" type="text" id="album_name" value="<?php echo 'Ngày ' . date('d/m/Y'); ?>" />
                    <?php
                    if ($db->num_rows($rsAlbum)) {
                    ?>
                        <select id="album_id" >
                        <?php
                        while ($row = $db->fetch_array($rsAlbum)) {
                            if ($row['id'] == intval($_GET['aid']))
                                echo '<option value="' . $row['id'] . '" selected>' . $row['name'] . '</option>';
                            else
                                echo '<option value="' . $row['id'] . '">' . $row['name'] . '</option>';
                        }
                        ?>
                    </select>
                    <?php
                    }
                    ?>
                </span>
                <span class="link" >
                    <a href="javascript:void(0)" style="font-weight: normal" id="selectAlbum"><?php if ($db->num_rows($rsAlbum)){echo "Tạo album mới";}else{echo "Chọn album hiện có";}?></a>
                </span>

            </li>

            <li  id="upload_location">
                <div id="imagesList"></div>
                <div class="clear"></div>
                <input type="hidden" id="mid" value="<?php echo $_SESSION['client']['id']; ?>"/>
                <input type="hidden" id="member_img_upload_path" value="<?php echo MEMBER_IMG_UPLOAD_PATH . $mid . '/' . date("Y") . '/' . date("m"); ?>"/>
                <input type="hidden" id="aid" value=""/>
                <input type="hidden" id="imgUploaded" value=""/>
                <div class="">
                    <input type="hidden" id="isUploadImage" value="0"/></div>
                <div class="btn-left-02"><input type="file" id="images" />
                </div>
                <div id="divShareImage" class="btn-left-07" style="margin: 5px 0 0 10px;display: none">
                    <input type="button" class="btnBlogComment left" value="Chia sẻ" id="shareImage" style="margin: -5px 0 0 10px;"/>Thông báo với các bạn cùng quê
                </div>
                <!--div class="btn-left-07" style="margin-left: 20px;">
                    <input type="button" class="btnBlogComment left" value="Tải ảnh lên" name="uploadImage" id="uploadImage"/>
                </div-->

                <a href="javascript:;" style="font-weight: normal; float: right;margin-right: 20px;" id="closeUploadImage">Đóng lại</a>
                
                <img src="/images/waiting.gif" style="display:none;margin-right: 10px;margin-top: 5px;vertical-align: middle;float: right" class="loading" >


            </li>
            <div class="btn-left-07" style="margin: 8px 0 0 10px;">
                <font style="color: #3D3D3D; font-size: 11px;">Giữ Ctrl để chọn nhiều ảnh, tối đa 10 ảnh.</font>
            </div>
            <li>
            </li>
        </ul>
    </div>
</div>
<script src="/js/image.js" type="text/javascript"></script>
